import { Entity, CreateDate, UpdateDate, Boolean, Digdit, PrimaryKey } from '@sker/core'
@Entity({ name: 'wx_api' })
export class WxApi {
    static title: string = `微信接口`;
    static resource: string = `wx_api`;

    @PrimaryKey({ primaryKeyConstraintName: "PK_WX_API_PATH" })
    path!: string;

    @Boolean()
    status!: boolean;

    @Boolean({ comment: '必须' })
    is_required!: boolean;

    @Digdit({ comment: '限制' })
    daily_limit!: number;

    @Digdit({ comment: '已用' })
    used!: number;

    @Digdit({ comment: '剩余' })
    remain!: number;

    @CreateDate({
        comment: '创建日期'
    })
    create_date!: Date;

    @UpdateDate({
        comment: '更新日期'
    })
    update_date!: Date;
}